package com.yg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yg.config.result.R;
import com.yg.entity.singleEntity.TeachingPracticeBase;

import javax.servlet.http.HttpServletResponse;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * <p>
 * 对应sheet16，此表是教学实践基地表 服务类
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface TeachingPracticeBaseService extends IService<TeachingPracticeBase> {
    //excel录入
    R readExcel(FileInputStream fileInputStream);

    //excel导出
    R writeExcel(String name, HttpServletResponse response) throws IOException;

    //查询所有信息
    R selectAllBaseInfo(int current,int size);

    //条件查询
    R baseConditionalQuery(String s,int current,int size);

    //更新信息
    R updateBaseInfo(String s);

    //删除教师
    R deleteBaseById(String id);

    //增加信息
    R insertBase(String teachingPracticeBase);
}
